package com.qf.business.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.business.user.mapper.RedEnvelopesDetailsMapper;
import com.qf.business.user.service.RedEnvelopesDetailsService;
import com.qf.data.user.entity.RedEnvelopesDetails;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * (RedEnvelopesDetails)表服务实现类
 *
 * @author makejava
 * @since 2022-07-20 10:21:24
 */
@Service
public class RedEnvelopesDetailsServiceImpl extends ServiceImpl<RedEnvelopesDetailsMapper, RedEnvelopesDetails> implements RedEnvelopesDetailsService {

    @Autowired
    private RedEnvelopesDetailsMapper redEnvelopesDetailsMapper;

    /**
     * 计算并且修改红包明细中的状态，选出运气王
     * @param redid
     * @return
     */
    @Override
    public int updateDetailsType(long redid) {
        return redEnvelopesDetailsMapper.updateDetailsType(redid);
    }
}


